package com.tyk.bookstore.back.system.repository;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

@Mapper
public interface RoleMenuRepository {

    void insertBatchRoleMenu(
            @Param("id") Long id,
            @Param("menuIdSet") Set<Long> menuIdSet
    );

    void deleteByRoleId(@Param("id") Long id);

    void deleteByMenuId(Long id);
}
